import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index'

import '@/utils/console.js'

//使用vite的scss预编译器，因此不需要在引用
// import '@/assets/base.scss';

// 1. 引入你需要的组件
import * as Vant from 'vant'
// 2. 引入组件样式
import 'vant/lib/index.css'

//全局组件注册
import globalComponents from './globalComponents'

//引入js和android交互支持js
import androidVue from '@/server/android-vue'

import { mockXHR } from './mock'
mockXHR()

const app = createApp(App)
app.use(Vant)
app.use(globalComponents)
app.use(router)
app.use(store)

app.use(androidVue)

app.mount('#app')
